﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="question-reply.ascx.cs" Inherits="templates_client_usercontrols_question_reply" %>
<table style="margin-top:5px; width:504px;" cellpadding="0" cellspacing="0">
    <tr style="background-image:url(../templates/client/images/bar_title_middle.png); background-repeat:no-repeat; height:35px;">
        <td valign="top" align="left">
            <img src="../templates/client/images/arrow_title.png" alt="arrow_title" width="20px" style="margin-left:5px; margin-right:5px; margin-top:7px;" />
            <span class="title_bar_content" style="margin-top:10px;">Danh sách câu hỏi và câu trả lời</span>
        </td>
    </tr>
    <tr>
        <td>
            <table width="500px">
    	    <tr>
    	           <td>
    	            <asp:TextBox ID="txtTuKhoa" runat="server" Width="200" onFocus="if(this.value=='Tìm kiếm câu hỏi')this.value='';" onBlur="if(this.value=='')this.value='Tìm kiếm câu hỏi';" value="Tìm kiếm câu hỏi" ></asp:TextBox>
    	            </td>
    	            <td>
    	            <asp:DropDownList ID="ddlChuDe" runat="server" class="select-1" Width="250px"></asp:DropDownList>
    	            </td>    	            
                   
              </tr>
              <tr>
                    <td align="right">
                     <asp:Button ID="btnTim" runat="server" class="button" Text="Tìm" 
                         onclick="btnTim_Click" />
                    </td>
                    <td align="left">
                    <asp:Button ID="btnGuiCauHoi" runat="server" class="button" Text="Gửi câu hỏi" 
                            onclick="btnGuiCauHoi_Click"/>
                    </td>
             </tr>
            <tr>
                <td colspan="2">             
                <asp:Repeater ID="rptDanhGiaiDap" runat="server" >                         
                        <ItemTemplate>  
                                <table width="98%">                                
                                <tr>
                                        <b>Câu hỏi :</b> <%#Eval("CauHoi")%><br /> 
                                        <b>Trả lời câu hỏi :</b> <%#Eval("CauTraLoi")%><br />
                                 <span style="color: Red" > --------------------------------------------------------------------------------</span>
                                 </tr>
                                </table>
                        </ItemTemplate>
                        <FooterTemplate></tbody></FooterTemplate>
                    </asp:Repeater>
                 </td>
            </tr> 
            <tr>  
                
    </tr>
    <tr style="background-image:url(../templates/client/images/footer-page-content2.png); background-repeat:repeat-x; height:40px">
        <td>
                    <ul class="paging" id="PhanTrang" runat="server">
                        <li>
                            <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" 
                                        OnClick="lbtnFirst_Click" CssClass="prev">Đầu</asp:LinkButton>
                        </li>
                        <li >
                            <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" 
                                        OnClick="lbtnPrevious_Click" CssClass="prev">Trước</asp:LinkButton>
                        </li>
                        <li >
                            <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" 
                                OnItemDataBound="dlPaging_ItemDataBound" RepeatDirection="Horizontal">
                                <ItemTemplate>                                
                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" CssClass="num" 
                                        CommandArgument='<%# Eval("PageIndex") %>' CommandName="Paging" 
                                        Text='<%# Eval("PageText") %>'></asp:LinkButton>                                
                                </ItemTemplate>
                            </asp:DataList>
                        </li>                        
                        <li >
                            <asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false" 
                                        OnClick="lbtnNext_Click" CssClass="next">Tiếp</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton ID="lbtnLast" runat="server" CssClass="next" CausesValidation="false" 
                                        OnClick="lbtnLast_Click">Cuối</asp:LinkButton>
                        </li>                        
                        <asp:Label ID="lblPageInfo" runat="server" Visible="false"></asp:Label>
                    </ul>
                    </td>                                                     
              </tr>               
            </table>
        </td>
    </tr>
</table>